<?php 
session_start(); 
unset($_SESSION['logged_user']); 
session_destroy();
header('location: index.php');
?>
